<html>
	<head>
	<link rel="stylesheet" type="text/css" href="css/base.css" />
	<link rel="stylesheet" type="text/css" href="skins/default.css" />
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="js/jquery.artDialog.js"></script>
	<style type="text/css">
		/**用户注册**/
		
		.banner-text {
			margin-top: 7px;
			margin-left: 20px;
			color: #b98c5d;
			font-size: 16px;
			font-weight: bold;
		}
		.register{
			 position: fixed;
			 z-index: 999;
			 width: 530px;
			 height: 556px;
			 background-color: #e2dfda;
			 border: 6px solid #b98c5d;
			 border-radius: 5px;
			 -moz-border-radius: 5px;
			 -webkit-border-radius: 5px;
			 -o-border-radius: 5px;
			 color: #000000;
		}
		.register-banner {
			margin-bottom: 10px;
			width: 530px;
			height: 40px;
			background-color: #594132;
			float: left;
			border-radius: 0 0 6px 6px;
			-moz-border-radius: 0 0 6px 6px;
			-webkit-border-radius: 0 0 6px 6px;
			-o-border-radius: 0 0 6px 6px;
		}
		.register-content { margin: 18px 20px 20px 45px; }
		.img1 { float: left; }
		.img2 {
			float: left;
			margin-left: 15px;
			margin-top: 13px;
		}
		p.aa {
			font-size: 18px;
			color: #b98c5d;
			font-weight: bold;
		}
		p.bb {
		 font-size::14px; color: #787878; }
		.register-table {
			margin-top: 15px;
			margin-left: 15px;
			float: left;
			color: #000;
		}
		.register-td {
			padding-right: 10px;
			text-align: left;
			padding-top: 8px;
		}
		.register-input {
			width: 165px;
			height: 20px;
			margin-top: 8px;
		}
		.register-input2 {
			width: 60px;
			float: left;
			margin-top: 8px;
			height: 20px;
		}
		.register-warning {
			padding-left: 4px;
			color: #F00;
			text-align: left;
		}
		.register-warning2 { padding-left: 4px; vertical-align: middle;text-align: left;line-height: 32px;}
		.register-now {
			padding: 50px;
			margin-left: 50px;
		}
		.register-gender {
			float: left;
			margin-right: 20px;
			padding-top: 8px;
		}
		#register-code { margin-top: 8px; }
	</style>
	</head>
	<body>
		<div class="register">
		<div class="register-banner">
		<div class="banner-text">青城会 <a id="outregister" href="#"><img id="x"
			src="images/xx.png" alt="cancel" /></a></div>
		</div>
		<div class="register-content">
		<div class="img2"><img class="fl mr20" src="images/zsdfag.png" />
		<p class="aa">青城会</p>
		<p class="bb">我们将为会员提供更细致的服务</p>
		</div>
		<div class="register-table">
				<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'regist-form'
				)); ?>
		        <div id="errMsg" style="color: red;">
		        	<?php echo $form->errorSummary($user); ?>
		        	<?php echo $form->error($user,'user_name'); ?>
		        </div>
			<table>
			<tr>
				<td class="register-td">用&nbsp;&nbsp;户&nbsp;名:</td>
				<td>
					<?php echo $form->textField($user,'user_name', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2">
					<span style="color:red;margin-right:5px;">*</span>&nbsp;6-12位数字、字母组合
				</td>
			</tr>
			<tr>
				<td class="register-td">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</td>
				<td>
					<?php echo $form->passwordField($user,'password', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;6-16个字符</td>
			</tr>
			<tr>
				<td class="register-td">确认密码:</td>
				<td>
					<?php echo $form->passwordField($user,'password', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
				<td>
					<?php echo $form->textField($user,'name', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</td>
				<td class="register-gender">
					<?php echo $form->radioButtonList($user,'gender', array(
						'1'=>'男',
						'0'=>'女'
					), array(
						'separator'=>'&nbsp;&nbsp;&nbsp;&nbsp;'
					) ) ?>
				</td>
			</tr>
			<tr>
				<td class="register-td">联系手机：</td>
				<td>
					<?php echo $form->textField($user,'mobile', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">电子邮箱：</td>
				<td>
					<?php echo $form->emailField($user,'email', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">证件号码：</td>
				<td>
					<?php echo $form->textField($user,'id_card', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">联系地址：</td>
				<td>
					<?php echo $form->textField($user,'address', array(
						'class'=>'register-input'
					)) ?>
				</td>
				<td class="register-warning2"><span style="color:red;margin-right:5px;">*</span>&nbsp;</td>
			</tr>
			<tr>
				<td class="register-td">验&nbsp;&nbsp;证&nbsp;&nbsp;码：</td>
				<td><input type="text" class="register-input2" />
			            		<?php if (CCaptcha::checkRequirements ()) : ?>
			    				<?php $this->widget ( 'CCaptcha', array (
			    					'showRefreshButton' => false, 
			    					'clickableImage' => true, 
			    					'imageOptions' => array (
			    						'title' => '刷新验证码', 
			    						'alt' => '刷新验证码', 
			    						'style' => 'margin-top:5px;' 
			    						) 
			    					) 
			    				);?> 
								<?php endif; ?>
			            	</td>
			</tr>
		</table>
		<div style="margin-left: 74px; margin-top: 20px;">
		<input type="button" value="立即注册" class="global_btn" id="btnRegist" />
		</div>
		<?php $this->endWidget(); ?>
		<script type="text/javascript">
			//$(".register").css('top', (window.screen.height - 110 - $(".register").height()) / 2);
			//$(".register").css('left', (window.screen.width - $(".register").width()) / 2);
			$('#btnRegist').click(function(){
				$('.register-input').each(function(){
					if($(this).val().length == 0)
					{
						var $_parent = $(this).parent().parent();
						$_parent.find('span').html('不能为空！');
					}
				});
				return;
				var data=$("#regist-form").serialize();
				$.ajax({
					url: '<?php echo Yii::app()->createAbsoluteUrl("menu/regist"); ?>',
					type: 'POST',
					data: data,
					success: function(msg) {
						if (msg == 'success')
						{
							
						}
						else
						{
							$('#errMsg').html(msg);
						}
					},
					failure: function(msg) {
						
					}
				});
			});
		</script>
		</div>
		</div>
		</div>
	</body>
</html>
<!--用户登录起始
<div class="login dn">
<div class="login-banner">
<div class="banner-text">青城会 <a id="outlogin" href="#"><img id="x"
	src="images/xx.png" alt="cancel" /></a></div>
</div>
<div class="register-content">

<div class="loginimg2"><img class="fl mr20" src="images/zsdfag.png" />
<p class="aa">青城会</p>
<p class="bb">我们将为会员提供更细致的服务</p>
</div>
<div class="login-table">
<table>
	<tr>
		<td class="login-td">用&nbsp;&nbsp;户&nbsp;&nbsp;名：</td>
		<td><input type="text" class="login-input" /></td>
	</tr>
	<tr>
		<td class="login-td">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
		<td><input type="text" class="login-input" />
	
	</tr>
	<tr>
		<td class="login-td"></td>
		<td><img src="images/wrthwrfg.png" class="login-now" alt="login" />
		<p id="register">立即注册</p>
		</td>
	</tr>
</table>
</div>
</div>
</div>
用户登录结束-->